const mongoose = require("./db");

const userinfoSchema = new mongoose.Schema({
  userId:{type:String},
  tel:{type:String},
  nickName:{type:String},
  password:{type:String},
  email:{type: String},
  birth:{type:Number},
  registerTime:{type:Number},
  loginTime:{type:Number},
  power:{type:Number},   // 0用户，1管理员
  avatar:{type: String},
  team:{type:Number}
})

module.exports = mongoose.model("userinfo", userinfoSchema);
